package com.wzy.authority.controller.view;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @program: authorityManagement
 * @description: 用户界面路由
 * @author: 1
 * @create: 2020-03-14 10:51
 **/
@RequestMapping("/view")
@Controller
public class ViewController {

    @GetMapping("/get")
    @ApiOperation(value = "获取页面", notes = "获取页面")//描述
    @ApiImplicitParam(name = "url", value = "路由地址", required=false)
    public ModelAndView getPage(ModelAndView modelAndView, String url) {
        modelAndView.setViewName(url);
        return modelAndView;
    }
}
